<template>
  <div class="box">
    <el-breadcrumb separator=">">
      <el-breadcrumb-item to="/login" replace>首页</el-breadcrumb-item>
      <el-breadcrumb-item to="/login/financial" replace>理财管理</el-breadcrumb-item>
      <el-breadcrumb-item>理财营销查询</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="tableBox">
      <div class="tableTitle">理财营销查询</div>
      <div class="searchBox">
        <el-form :model="searchObject" size="mini" inline>
          <div class="block">
            <el-form-item label="部门">
              <el-select v-model="searchObject.department" placeholder="请选择">
                <el-option v-for="item in departmentOptions" :key="item.value" :label="item.label"
                           :value="item.value"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="人员">
              <el-select v-model="searchObject.BDName" placeholder="请选择">
                <el-option v-for="item in BDNameOptions" :key="item.value" :label="item.label"
                           :value="item.value"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" icon="el-icon-search" circle @click="search"></el-button>
            </el-form-item>
          </div>
        </el-form>
      </div>
      <div class="title">当前选择业务员:{{searchObject.BDName}}</div>
      <el-table :data="tableData">
        <el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
        <el-table-column prop="" label="客户id" align="center"></el-table-column>
        <el-table-column prop="" label="客户姓名" align="center"></el-table-column>
        <el-table-column prop="" label="客户账号" align="center"></el-table-column>
        <el-table-column prop="" label="理财余额" align="center"></el-table-column>
        <el-table-column prop="" label="理财投资金额" align="center"></el-table-column>
      </el-table>
      <pagination :maxTotal="maxTotal" @handleSize="handleSizeChange" @handleCurrent="handleCurrentChange"></pagination>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import pagination from 'components/pagination'

  export default {
    data () {
      return {
        maxTotal: 10,
        searchObject: {},
        tableData: [],
        departmentOptions: [],
        BDNameOptions: []
      }
    },
    created () {
    },
    methods: {
      search () {
      },
      handleSizeChange (val) {
      },
      handleCurrentChange (val) {
      }
    },
    components: {
      pagination
    }
  }
</script>

<style lang="less" ref="stylesheet/less" scoped>
  .title {
    padding: 15px 0;
    text-align: center;
    color: red;
  }
</style>
